package edu.gatech.mobile.scene.provider.impl;

import android.net.Uri;
import edu.gatech.mobile.scene.provider.TableSchema;
/**
 * Specifying the MaskInfo schema
 * @author Jing
 *
 */
public class MaskInfoTable extends TableSchema{
	
	private static final String TABLE_NAME = "masks";

	// Base MIME type for the entity table.
	private static final String TABLE_TYPE = "vnd.en.masks";

	public static final Uri CONTENT_URI = Uri.parse("content://"
			+ ProprioVisionSchema.AUTHORITY + "/masks");
	
	public static final String SORT_ORDER = "time_posted ASC";
	
	//Table columns
	public static final String ORIGINAL_IMAGE_NAME ="orig_image_name";
	public static final String MASK_NAME ="mask_name";
	public static final String TIME_POSTED ="time_posted";
	public static final String LABEL_NAME ="label_name";
	public static final String PIXEL_LOC_X = "loc_x";
	public static final String PIXEL_LOC_Y = "loc_y";
	public static final String RELATIVE_TO_HORIZON = "relative_to_horizon";		

	 
	//specifying data type for each column.
	private static final String[][] FIELDS = {{LABEL_NAME, "TEXT"}, {ORIGINAL_IMAGE_NAME, "TEXT"}, {MASK_NAME, "TEXT"}, 
		{TIME_POSTED, "INTEGER"}, {RELATIVE_TO_HORIZON, "INTEGER"}, {PIXEL_LOC_X, "INTEGER"},{PIXEL_LOC_Y, "INTEGER"}};
	
	protected MaskInfoTable() {
		super(TABLE_NAME, TABLE_TYPE, CONTENT_URI, SORT_ORDER, FIELDS);
	}
}
